methods: {
resetLoginForm () {
this.$refs.loginFormRef.resetFields()
},
Login () {
this.$refs.loginFormRef.validate(async valid => {
if (!valid) return
const { data: result } = await this.$http.post('login', this.loginForm)
if (result.meta.status !== 200) return this.$message.error('登录失败')
this.$message.success('登录成功')
})
}

